package com.groupten.Controller;

import lombok.extern.slf4j.Slf4j;
import com.groupten.Service.LoginService;
import com.groupten.Vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("group10/login")
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/logins")
    public String login(@RequestBody LoginVo loginVo) {
        return  loginService.login(loginVo);
    }
}